package com.handsome.适配器模式.spring源码;

import org.springframework.web.servlet.ModelAndView;

/**
 * @author niechun
 * @date 2023/2/2 21:59
 */
public class SimpleServletHandleAdapter implements HandleAdapter{
    @Override
    public boolean supports(Object handler) {
        return handler instanceof ServletController;
    }

    @Override
    public ModelAndView handle(Object handler) {
        ServletController result = (ServletController) handler;
        result.handleRequest();
        return null;
    }
}
